//
//  HeaderSectionResultView_iPad.m
//  PhongThuyHuongNha
//
//  Created by Le Anh Tai on 10/20/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import "HeaderSectionResultView_iPad.h"
#import "UIConstants.h"

@implementation HeaderSectionResultView_iPad

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self)
    {
        self.backgroundColor = [UIColor clearColor];
        
        _headerTotView = [[HeaderSectionResultView alloc] init];
        [_headerTotView loadHeaderText:@"Bốn Hướng Tốt"];
        [self addSubview:_headerTotView];
        
        _headerXauView = [[HeaderSectionResultView alloc] init];
        [_headerXauView loadHeaderText:@"Bốn Hướng Xấu"];
        [self addSubview:_headerXauView];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    _headerTotView.frame = RECT(0, 0, self.width/2 - 1, self.height);
    _headerXauView.frame = RECT(_headerTotView.right + 2, 0, _headerTotView.width, self.height);
}

@end
